import React, { createContext, useState } from 'react'
import Father from './Father'

const context = createContext()
export {
  context
}

export default function ContextCom() {
  const [num] = useState(10000)
  return (
    <div>
      <h2>
        ContextCom -- {num}
      </h2>
      <context.Provider value={num}>
        <Father />
      </context.Provider>
    </div>
  )
}
